<!DOCTYPE html>
<html>


<!-- Mirrored from www.zi-han.net/theme/hplus/form_basic.html by HTTrack Website Copier/3.x [XR&CO'2014], Wed, 20 Jan 2016 14:19:15 GMT -->
<head>

    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">



    <link rel="shortcut icon" href="favicon.ico"> <link href="__PUBLIC__/dist/css/bootstrap.min14ed.css?v=3.3.6" rel="stylesheet">
    <link href="__PUBLIC__/dist/css/font-awesome.min93e3.css?v=4.4.0" rel="stylesheet">
    <link href="__PUBLIC__/dist/css/plugins/iCheck/custom.css" rel="stylesheet">
    <link href="__PUBLIC__/dist/css/plugins/switchery/switchery.css" rel="stylesheet">
    <link href="__PUBLIC__/dist/css/plugins/awesome-bootstrap-checkbox/awesome-bootstrap-checkbox.css" rel="stylesheet">
    <link href="__PUBLIC__/dist/css/animate.min.css" rel="stylesheet">
    <link href="__PUBLIC__/dist/css/style.min862f.css?v=4.1.0" rel="stylesheet">

</head>

<body class="gray-bg">
<div class="wrapper wrapper-content animated fadeInRight">

    <div class="row">
        <div class="col-sm-12">
            <div class="ibox float-e-margins">
                <div class="ibox-title">
                    <h5>文章列表</h5>
                </div>
                <div class="ibox-content">
                    <form method="post" class="form-horizontal">
                        <div class="form-group">
                            <label class="col-sm-2 control-label">文章标题</label>
                            <div class="col-sm-10">
                                <input type="text" class="form-control" name="title" value="{$info.title}" required>
                            </div>
                        </div>
                        <div class="hr-line-dashed"></div>
                        {if condition="$businesses_id eq 0"}
                        <div class="form-group draggable ui-draggable">
                            <label class="col-sm-2 control-label">所属商家：</label>
                            <div class="col-sm-6">
                                <select id="businesses_id" name="businesses_id" class="form-control" required>
                                    {foreach name="businesses" item="item"}
                                    {if condition="$item['id'] eq $info['businesses_id']"}
                                    <option value="{$item.id}" selected="selected">
                                        {$item.name}
                                    </option>
                                    {else/}
                                    <option value="{$item.id}">
                                        {$item.name}
                                    </option>
                                    {/if}
                                    {/foreach}
                                </select>
                            </div>
                        </div>
                        <div class="hr-line-dashed"></div>
                        {else/}
                        <input type="hidden" name="businesses_id" value="{$businesses_id}">
                        {/if}

                        <div class="form-group">
                            <label class="col-sm-2 control-label">文章分类</label>
                            <div class="col-sm-10">

                                <select name="cate_id" class="form-control" required>
                                    <option value="">请选择分类</option>
                                    {foreach name="cateList" item="parent_cate"}
                                        <option value="{$parent_cate.id}" {if condition="$parent_cate['id'] eq $info['cate_id']"}selected{/if} >
                                        {for start="1" end="$parent_cate['deepPath']"}&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;{/for}
                                        {if condition="$parent_cate['deepPath'] neq 1"}└ {/if}{$parent_cate.name}
                                        </option>
                                    {/foreach}
                                </select>
                            </div>
                        </div>
                        <div class="hr-line-dashed"></div>



                        <div class="form-group">
                            <label class="col-sm-2 control-label">是否显示</label>
                            <div class="col-sm-10">
                                <input type="checkbox" class="js-switch" name="is_show" value="1" {if condition="$info['is_show'] eq 1"}checked{/if} />
                            </div>
                        </div>
                        <div class="hr-line-dashed"></div>

                        <div class="form-group">
                            <label class="col-sm-2 control-label">排序</label>
                            <div class="col-sm-10">
                                <input type="text" class="form-control" name="sort" value="{$info['sort']?$info['sort']:50}" required>
                            </div>
                        </div>
                        <div class="hr-line-dashed"></div>


                        <div class="form-group">
                            <label class="col-sm-2 control-label">文章详情</label>
                            <div class="col-sm-10">
                                <textarea name="content" id="editor">{$info.content}</textarea>
                            </div>
                        </div>
                        <div class="hr-line-dashed"></div>

                        <div class="form-group">
                            <div class="col-sm-4 col-sm-offset-2">
                                <button class="btn btn-primary" type="submit">保存内容</button>
                                <button class="btn btn-white" type="button" onclick="history.back()">取消</button>
                            </div>
                        </div>
                    </form>
                </div>

            </div>
        </div>


    </div>
</div>


<script src="__PUBLIC__/dist/js/jquery.min.js?v=2.1.4"></script>
<script src="__PUBLIC__/dist/js/bootstrap.min.js?v=3.3.6"></script>
<script src="__PUBLIC__/dist/js/content.min.js?v=1.0.0"></script>
<script src="__PUBLIC__/dist/js/plugins/iCheck/icheck.min.js"></script>
<script src="__PUBLIC__/dist/js/plugins/switchery/switchery.js"></script>
<script type="text/javascript" charset="utf-8" src="__PUBLIC__/libs/ueditor/ueditor.config.js"></script>
<script type="text/javascript" charset="utf-8" src="__PUBLIC__/libs/ueditor/ueditor.all.min.js"> </script>
<script type="text/javascript" charset="utf-8" src="__PUBLIC__/libs/global.js?rnd=12345678"> </script>
<script>
    UE.getEditor('editor');
    new Switchery(document.querySelector('.js-switch'));
    $(document).ready(function(){$(".i-checks").iCheck({checkboxClass:"icheckbox_square-green",radioClass:"iradio_square-green",})});


    /*
     * 以下是图片上传方法
     */
    // 上传服务图片成功回调函数
    function call_back(fileurl_tmp){
        $("#original_img").html('<img src="'+fileurl_tmp+'" alt="" style="height:34px">');
        $('#original_img_input').val(fileurl_tmp);
    }




    $('.goods-image').mouseover(function(){
        $(this).next().show();
    }).mouseout(function(){
        $(this).next().hide();
    });

</script>

</body>


<!-- Mirrored from www.zi-han.net/theme/hplus/form_basic.html by HTTrack Website Copier/3.x [XR&CO'2014], Wed, 20 Jan 2016 14:19:15 GMT -->
</html>
